package com.dangdang.service;

import java.util.List;

import com.dangdang.domain.CartItem;
import com.dangdang.domain.User;

/**
 * 购物车业务
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-29
 */
public interface CartService {

	public boolean addItem(Integer productId);

	public boolean updateNumber(Integer productId, int num);

	public boolean drop(Integer productId);

	public boolean recovery(Integer productId);

	public void clear();

	public boolean isEmpty();

	public List<CartItem> getCartItems();

	public double getTotalPrice();

	public double getDangPrice();

	public User getUser();

}
